import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false


//全局组件
import Carousel from "components/Carousel"
import Stars from "components/Stars"
import Icon from "components/Icon"
import Pagination from "components/Pagination"
import TypeNav from "components/TypeNav"
Vue.component("Carousel",Carousel)
Vue.component("Stars",Stars)
Vue.component("Icon",Icon)
Vue.component("Pagination",Pagination)
Vue.component("TypeNav",TypeNav)

//轮播相关的样式
import "swiper/swiper-bundle.min.css"
//过渡样式
import "common/css/transition.less"
//路由环境
import router from "router";
//mock环境
import "mock/mock"
//vuex环境
import store from "store"
//定义总线
Vue.prototype.$bus = new Vue()
//引入vee-validate
import "util/validate.js"
//引入elemnet-ui环境
import "util/element.js"
//引入vue-lazyLoad 创建 做图片懒加载
import VueLazyload from 'vue-lazyload'
import loading from "common/loading.gif"
Vue.use(VueLazyload, {
    loading
})



new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
